<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS Test: Named pages: generating page breaks</title>
  <link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com"/>
  <link rel="help" href="http://www.w3.org/TR/css3-page/#using-named-pages"/>
  <meta name="flags" content="paged" />
  <meta name="assert" content="Block elements with inline content and different page properties create a page break"/>
  <style type="text/css"><![CDATA[
	@page pushedRight {margin-right: 50%;}
	@page pushedLeft {margin-left: 50%;}
	.spun {
		page: pushedLeft;
	}
	.unspun {
		page: pushedRight;
	}
  ]]></style>
 </head>
 <body>
	<div class="spun">This paragraph must be entirely on the right side.</div>

	<div>This paragraph must be on the following page and should stretch across the entire page.
		<div class="spun">
			This paragraph must be entirely on the right side.
			<p>This line must appear on the same page as the preceeding.</p>
		</div>
	</div>
	
	<div class="spun">
		This must be the third paragraph on page 3 and be entirely on the right side.
		<div class="unspun">This paragraph must be entirely on the left side on the following page.</div>
		<p>This paragraph must be entirely on the right side and on a new page.</p>
	</div>
	<div class="spun">This paragraph must be entirely on the right side. It should <strong>not</strong> appear on a new page.</div>
 </body>
</html>